package com.bcqn.common;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Config 配置读取类
 *
 * @author Kelly
 * @version v1.0
 * @date 2020/4/24 21:59
 */
@Configuration
@Data
public class CommonConfig {

    /**
     * 小程序appid
     */
    @Value("${mini.appid}")
    private String appId;

    /**
     * 小程序appsecret
     */
    @Value("${mini.appsecret}")
    private String secret;

    /**
     * 点赞权重
     */
    @Value("${post.like.weights}")
    private double likeWeights;

    /**
     * 评论权重
     */
    @Value("${post.review.weights}")
    private double reviewWeights;

    /**
     * 转发权重
     */
    @Value("${post.forward.weights}")
    private double forwardWeights;

    /**
     * 推荐权重
     */
    @Value("${post.recommend.weights}")
    private double recommendWeights;

    /**
     * 时效权重
     */
    @Value("${post.hours.weights}")
    private double hoursWeights;
}
